package com.allin.mall.common.core.exception;

import com.allin.mall.common.core.api.IResultCode;

public class BusinessException extends RuntimeException {

    private IResultCode code;

    public BusinessException() {}

    public BusinessException(IResultCode resultCode) {
        super(resultCode.getMessage());
        this.code = resultCode;
    }

    public IResultCode getCode() {
        return code;
    }
}
